package com.taobao.livis.ch01;

public class MyThread1 extends Thread {
	
	public MyThread1(String name){
		super(name);
	}
	
	@Override
	public void run(){
		for(int i=0;i<10;i++){
			System.out.println(this.getName()+" print "+i);
		}
	}
	
	public static void main(String[] args){
		for(int i=0;i<5;i++){
			MyThread1 m = new MyThread1("Thread"+i);
			m.start();
		}
	}
	
}
